<div class="wrapper">
    <div id="body" style="padding-top: 15px;">

        <div id="content321" class="clearfix <?=$page?>-content">   

            <? if(count($pictures)>0): ?>

                <div id="to_remove" style="display: none;">
                    <div id="pro-gallery" class="clearfix">

                        <div class="contect-banner2">

                            <?
                                $pic_arr = explode('.',$pictures[1]['filename']);
                                $thumb_filename = 'thumbnail/'.$pic_arr[0].'_400x300_exacttop.'.$pic_arr[1]; 
                            ?>

                            <img src="<?=base_url();?>cms-pro/pro-gallery/<?=$news['path_gallery']?>/<?=$thumb_filename?>" alt="<?=$title?>" title="<?=$title?>" />
                        </div>
                        <div class="contect-banner1">
                            <?
                                $pic_arr = explode('.',$pictures[0]['filename']);
                                $thumb_filename = 'thumbnail/'.$pic_arr[0].'_400x300_exacttop.'.$pic_arr[1]; 
                            ?>
                            <img src="<?=base_url();?>cms-pro/pro-gallery/<?=$news['path_gallery']?>/<?=$thumb_filename?>" alt="<?=$title?>" title="<?=$title?>" />
                        </div>

                    </div>
                </div>  

                <? endif; ?>

            <!--TEXT-->
            <div class="contect-text">
                <?=$news['content'];?>
            </div>        

        </div>

    </div>
</div>     

<div class="wrapper"> 
    <div id="ticker"> 
        <div id="view"> 
            <ul class="newsticker" style="width: 7550px; left: -865px;">

                <?
                    if(isset($tickerNews))
                        foreach($tickerNews as $news){
                            //$link = sredinaslov($news['title'],$news['id'],$news['cName']);
                            $link = base_url('news/'.urlify::filter($news['post_title']).'-'.$news['ID']);
                        ?>
                        <li><a href="<?=$link?>"><?=$news['post_title']?></a></li> 
                        <?
                    }
                ?>
            </ul>
        </div> 
        <a id="dec_butt" class="dec_butt" href="#">Nazad</a>
        <a id="inc_butt" class="inc_butt" href="#">Naprijed</a>  
    </div>

    <script type="text/javascript">
        var j = jQuery.noConflict();
        // ticker settings
        var newsTickerObj=j('.newsticker').nTicker();

        j(".nticker").newsTicker();

        j('#dec_butt')
        .mousedown( function() { newsTickerObj.nTicker('setSpeed', -3); } )
        .mouseup( function() { newsTickerObj.nTicker('setSpeed', 1); } )
        .click( function() { return false; } ) ;

        j('#inc_butt')
        .mousedown( function() { newsTickerObj.nTicker('setSpeed', 3); } )
        .mouseup( function() { newsTickerObj.nTicker('setSpeed', 1); } )
        .click( function() { return false; } ) ; 


        j('#nav a').hover(
            function() {
                newsTickerObj.nTicker('setSpeed', 0); 
            },
            function() {
                newsTickerObj.nTicker('setSpeed', 1); 
        }); 

    </script>
</div>   

<div class="wrapper">
    <div id="banner" class="clearfix">

        <div class="banner2" id="slideeshow2">
            <a href="<?=base_url('cms-pro')?>"><img src="<?=$url;?>assets/img/banners/cms-banner_02_<?=$this->lang->lang()?>.jpg" alt="<?=lang('nav.cms-pro')?>" title="<?=lang('nav.cms-pro')?>" /></a>
        </div>
        <div class="banner1" id="slideeshow1">
            <a href="<?=base_url('cms-pro')?>"><img src="<?=$url;?>assets/img/banners/cms-banner_01_<?=$this->lang->lang()?>.jpg" alt="<?=lang('nav.cms-pro')?>" title="<?=lang('nav.cms-pro')?>" /></a>
        </div>

    </div>
</div>